<extend name="Layout/application"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>文章列表</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading"></div>

                        <div class="panel-body">

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">

                                <a href="{{:U('create_content')}}">
                                    <button type="button" class="btn btn-primary">新增文章</button>
                                </a>


                                <a href="{{:U('create')}}">
                                    <button type="button" class="btn btn-primary">
                                        删除文章
                                    </button>
                                </a>

                            </ul>

                            <table class="table table-bordered table-striped with-check">
                                <thead>
                                <tr>
                                    <th><i class="icon-resize-vertical"></i></th>
                                    <th>标题</th>
                                    <th>所属栏目</th>
                                    <th>发布日期</th>
                                    <th><i class="icon-wrench"></i></th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="421"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/421" target="_blank"
                                                        style="color:#000000">晴朗</a></td>
                                    <td>天气</td>
                                    <td>2016-08-12</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/421">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="421" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="383"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/383" target="_blank"
                                                        style="color:#59b0b0">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/383">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="383" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="382"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/382" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/382">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="382" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="380"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/380" target="_blank"
                                                        style="color:#000000"> 新闻 </a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/380">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="380" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="379"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/379" target="_blank"
                                                        style="color:#000000">新闻 </a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/379">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="379" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="378"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/378" target="_blank"
                                                        style="color:#000000">新闻 </a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/378">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="378" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="377"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/377" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/377">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="377" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="376"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/376" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-22</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/376">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="376" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="344"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/344" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/344">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="344" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="337"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/337" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/337">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="337" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="336"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/336" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/336">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="336" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="334"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/334" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/334">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="334" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="334"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/334" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/334">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="334" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="334"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/334" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/334">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="334" class="id" name="id">
                                </tr>
                                <tr>
                                    <td>
                                        <div class="checker" id="uniform-undefined"><span><input type="checkbox"
                                                                                                 name="checkbox[]"
                                                                                                 value="334"
                                                                                                 style="opacity: 0;"></span>
                                        </div>
                                    </td>
                                    <td class="name"><a class="url" href="/Home/Article/index/id/334" target="_blank"
                                                        style="color:#000000">新闻</a></td>
                                    <td>新闻</td>
                                    <td>2015-05-17</td>
                                    <td>
                                        <a class="edit" href="/Content/Article/edit/id/334">
                                            <i class="icon-pencil"></i></a>
                                        <a class="del" href="#"><i class="icon-remove"></i></a>
                                    </td>
                                    <input type="hidden" value="334" class="id" name="id">
                                </tr>
                                </tbody>
                            </table>


                        </div>
                    </div>
                </div>


                <div class="col-md-2">
                    <div class="list-group">
                        <a href="javascript: void 0;" class="list-group-item list-group-item-info sort_category">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 新增 (add)
                        </a>

                        <a href="javascript: void 0;" class="list-group-item list-group-item-info sort_category">
                            <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> 排序 (sort)
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>

<block name="js">
    <script src="__PUBLIC__/ckeditor/ckeditor.js"></script>
    <script src="__PUBLIC__/ckfinder/ckfinder.js"></script>

    <script>
        CKEDITOR.replace('content', {
            filebrowserBrowseUrl: '__PUBLIC__/ckfinder/ckfinder.html',
            filebrowserImageBrowseUrl: '__PUBLIC__/ckfinder/ckfinder.html?type=Images',
            filebrowserFlashBrowseUrl: '__PUBLIC__/ckfinder/ckfinder.html?type=Flash',
            filebrowserUploadUrl: '__PUBLIC__/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
            filebrowserImageUploadUrl: '__PUBLIC__/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
            filebrowserFlashUploadUrl: '__PUBLIC__/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
        });
    </script>
</block>